import request from '@/utils/request'

// 查询酒店信息列表
export function listHotels(query) {
  return request({
    url: '/business/hotels/list',
    method: 'get',
    params: query
  })
}

// 查询酒店信息详细
export function getHotels(hotelId) {
  return request({
    url: '/business/hotels/' + hotelId,
    method: 'get'
  })
}

// 新增酒店信息
export function addHotels(data) {
  return request({
    url: '/business/hotels',
    method: 'post',
    data: data
  })
}

// 修改酒店信息
export function updateHotels(data) {
  return request({
    url: '/business/hotels',
    method: 'put',
    data: data
  })
}

// 删除酒店信息
export function delHotels(hotelId) {
  return request({
    url: '/business/hotels/' + hotelId,
    method: 'delete'
  })
}
